﻿'''
Created on 2010-6-28
全局变量的引用
@author: me
'''
def func():
    global x
    print 'x is ',x
    x = 2
    print 'Changed local x to ', x

x = 50
func()
print 'Value of x is ',x